#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "dbase.h"
#include "xmm.h"
DBASE *dbase_open(char *host, int port)
{
    DBASE *dbase = NULL;
    if(host && port > 0 && (dbase = (DBASE *)xmm_new(sizeof(DBASE))))
    {

    }
    return dbase;
}

/* dbase check exists */
int dbase_exists(DBASE *dbase, char *filename)
{

}
/* dbase read */
int dbase_read(DBASE *dbase, char *filename, char *data, int ndata, off_t offset)
{
}
/* delete */
int dbase_delete(DBASE *dbase, char *filename)
{
}
/* dbase new file */
int dbase_create(DBASE *dbase, char *filename, char *data, int ndata)
{
}
/* dbase update data */
int dbase_update(DBASE *dbase, char *filename, char *data, int ndata)
{
}
/* copy from file */
int dbase_copy(DBASE *dbase, char *filename, char *localfile)
{
}
/* dump to file */
int dbase_dump(DBASE *dbase, char *filename, char *localfile)
{
}
/* dbase close */
int dbase_close(DBASE *dbase)
{
}
